<?php

namespace app\validate;

use core\validate\ValidateBase;

class UserGrade extends ValidateBase
{
    protected $rule =   [
        'title'  => 'require',
        'icon'  => 'require',
        'points' => 'require|number'
    ];

    protected $message  =   [
        'title.require'  => '等级名必填',
        'icon.require'  => '等级图标必填',
        'points.require' => '积分必填',
        'points.number'  => '积分格式错误',
    ];
}
